#include<bits/stdc++.h>
using namespace std;
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n;
    cin >> n;
    int cnt[100005] = {0};
    int ans = n;
    int mx = 0;
    int x;
    for(int i = 1;i <= n;i ++){
        cin >> x;
        cnt[x]++;
        mx = max(mx,x);
    }
    for(int i = 1;i <= mx;i ++){
        for(int k = 1;k <= cnt[i];k ++){
            for(int j = 1;j < i;j ++){
                if(cnt[j] > 0){
                    cnt[j] --;
                    ans --;
                }
            }
        }
    }
    cout << ans;
    return 0;
}
